package com.gkzf.ai.module.crm.service.creditreportsimple.app;

import com.gkzf.ai.module.crm.dal.dataobject.creditreportsimple.CreditReportSimpleCreditCardDO;
import com.gkzf.ai.module.crm.dal.mysql.creditreportsimple.CreditReportSimpleCreditCardMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;

import java.util.List;

/**
 * CRM 简版征信报告贷款/信用卡逾期明细 Service 实现类
 *
 * @author 国科智飞
 */
@Service
@Validated
public class AppCreditReportSimpleCreditCardServiceImpl implements AppCreditReportSimpleCreditCardService {

    @Resource
    private CreditReportSimpleCreditCardMapper creditReportSimpleCreditCardMapper;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void createCreditReportSimpleOverdue(List<CreditReportSimpleCreditCardDO> createReqVO) {
        // 插入
        creditReportSimpleCreditCardMapper.insertBatch(createReqVO);

    }


}